package com.li.shop.service;

import com.li.shop.domain.User;
import com.li.shop.utils.SearchUserRequest;
import com.li.shop.utils.SearchUserResponse;

import java.util.List;

public interface UserService {
    void add(User user);
    void delete(String user_name);
    User login(String user_name, String password);
    User get(String user_name);
    List<User> list();
    User get(String user_name, String password);
    boolean exist(String user_name);
    Integer findUser(String user_name);
    Integer insert(User user);


    SearchUserResponse listUser(Integer pageSize, Integer pageNum, String keyword);
    int deleteUserByPrimaryKey(String id);
    User findUserByPrimaryKey(String id);
    List<User> searchUsers(SearchUserRequest request);
    int saveUser(User user);

    //根据sesssion中的id查询当前的用户信息
    User searchById(String id);
    //更新操作
    int update(User user);
    int updatemessage(User user);

    List<User> findAll();//w


    int updateUserById(User user);//w



}
